<ul class="list-group list-group-flush ">
    <?php foreach($data as $d){ 
    if($image){ ?>
    <li class="d-flex justify-content-between align-items-start list-group-item list-group-item-action list-group-item-light ">
        <div class="flex-shrink-0">
            <img src="<?=laoha_thumb($d['cover'],40,40)?>" class="border p-1">
        </div>
        <div class="ms-3 flex-grow-1">
            <div>
                <a href="/app/laoha/post/detail?id=<?=$d['id']?>" class="link-underline-light text-dark">
                    <?=$d['title']?>
                </a>
            </div>
            <small class="fw-light"><?=timeTo($d['created_at'])?></small>
        </div>
    </li>
    <?php }else{ ?>
    <a href="/app/laoha/post/detail?id=<?=$d['id']?>"
        class="list-group-item list-group-item-action list-group-item-light text-truncate">
        <?=$d['title']?>
    </a>
    <?php }
    } ?>
</ul>